package com.house.health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.house.health.domain.Users;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author DuanChangSuo
 * @date 2023/1/30 15:39
 * @description 类的描述和介绍
 **/
@Mapper
public interface UserMapper extends BaseMapper<Users> {
    /**
     * 用户登录
     *
     * @return
     */
    public Users login(Users user);

    /**
     * 用户注册
     *
     * @param user
     * @return
     */
    public int regist(Users user);
    /**
     * 修改密码
     * @return
     */
    public int updateUserPwd(Users users);
    /**
     * 检查旧密码
     * @return
     */
    public Users checkOldPwd(Users users);

    public Users getByUserId(String userId);
}

